package com.qf.controller;

import com.qf.service.CarService;
import com.qf.util.ResultData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

/**
 * --- 天道酬勤 ---
 *
 * @author shengzhongzheng
 * @desc
 */
@RestController
@RequestMapping("/car")
public class CarController {

    @Autowired
    private CarService carService;

    @RequestMapping("/list")
    public ResultData findAll(@RequestParam HashMap<String,Object> map){
        System.out.println("map = " + map);
        ResultData resultData = carService.findAll(map);
        return resultData;
    }

}
